//先引入jquery.js,kk_header
var zt_foot = '<style>.zt-zt_footer{width: 100%;height:140px;background: #333;padding: 15px 0;}';
zt_foot += '.zt-zt_footer .zt-zt_footer-main{position:relative;width: 1000px;margin: 0 auto;}';
zt_foot += '.zt-zt_footer .zt-zt_footer-main .dtit{font:bold 14px/30px Microsoft Yahei;color: #666;}';
zt_foot += '.zt-zt_footer .zt-zt_footer-main .zt-down{position: absolute;left: 0;top: 0;}';
zt_foot += '.zt-zt_footer .zt-zt_footer-main .zt-down a.d-pc,.zt-zt_footer .zt-zt_footer-main .zt-down a.d-iPad,.zt-zt_footer .zt-zt_footer-main .zt-down a.d-iPhone{display:block;padding-left: 20px;margin:0;background: url(http://zt.chuanke.com/images/special/common/zt_bg.png) no-repeat;font:100 12px/24px Microsoft Yahei;color: #aaa;}';
zt_foot += '.zt-zt_footer .zt-zt_footer-main .zt-down a.d-pc{background-position: 0 5px;}';
zt_foot += '.zt-zt_footer .zt-zt_footer-main .zt-down a.d-iPad{background-position: 0 -22px;}';
zt_foot += '.zt-zt_footer .zt-zt_footer-main .zt-down a.d-iPhone{background-position: 2px -49px;}';
zt_foot += '.zt-zt_footer .zt-zt_footer-main .zt-zujian{position: absolute;left: 240px;top:0;}';
zt_foot += '.zt-zt_footer .zt-zt_footer-main .zt-zujian iframe{display: block;margin:5px 0 6px 0;}';
zt_foot += '.zt-zt_footer .zt-zt_footer-main .zt-weixin{position: absolute;left: 460px;top: 0;}';
zt_foot += '.zt-zt_footer .zt-zt_footer-main .zt-logo{position: absolute;right: 0;top: 30px;}';
zt_foot += '.zt-zt_footer .zt-zt_footer-main .zt-down a:hover{color:#F60;}';
zt_foot += '.zt_footer .ft_nav a{color:#666;}';
zt_foot += '.zt_footer .ft_nav a:hover{color:#F60;}';
zt_foot += '.zt_footer .copyright a{color:#666;}';
zt_foot += '.zt_footer .copyright a:hover{color:#F60;}</style>';
zt_foot += '<div class="zt-zt_footer">';
zt_foot += '<div class="zt-zt_footer-main">';
zt_foot += '<div class="zt-down">';
zt_foot += '<p class="dtit">学习神器下载</p>';
zt_foot += '<a href="http://kk.chuanke.com/" target="_blank" class="d-pc">百度传课KK PC版</a>';
zt_foot += '<a href="http://kk.chuanke.com/android" target="_blank" class="d-iPhone">百度传课KK Android版</a>';
zt_foot += '<a href="http://kk.chuanke.com/iphone" target="_blank" class="d-iPhone">百度传课KK iPhone版</a>';
zt_foot += '<a href="http://kk.chuanke.com/ipad" target="_blank" class="d-iPad">百度传课KK iPad版</a></div>';
zt_foot += '<div class="zt-zujian"><p class="dtit">关注我们</p>';
zt_foot += '<iframe width="71" scrolling="no" height="24" frameborder="0" src="http://widget.weibo.com/relationship/followbutton.php?language=zh_cn&amp;width=136&amp;height=24&amp;uid=2554323210&amp;style=1&amp;btn=red&amp;dpc=1" border="0" marginheight="0" marginwidth="0" allowtransparency="true"></iframe>';
zt_foot += '<iframe width="68" scrolling="auto" height="24" frameborder="0" allowtransparency="true" marginheight="0" marginwidth="0" src="http://follow.v.t.qq.com/index.php?c=follow&amp;a=quick&amp;name=chuankeKK&amp;style=5&amp;t=1345101207917&amp;f=0"></iframe>';
zt_foot += '<iframe scrolling="no" frameborder="0" style="width:95px;height:26px;" src="http://widget.renren.com/plugin/followbutton?page_id=601571879&amp;color=0&amp;model=0" allowtransparency="true"></iframe></div>';
zt_foot += '<div class="zt-weixin"><p class="dtit">百度传课网官方微信</p><p class="mt5"><img src="http://zt.chuanke.com/images/special/common/wx.jpg" alt="百度传课网官方微信" /></p></div>';
zt_foot += '<div class="zt-logo"><a href="http://www.chuanke.com/" target="_blank" title="学知识，上百度传课"><img src="http://zt.chuanke.com/images/special/common/zt_logo.gif" alt="百度传课网" /></a></div></div></div>';
zt_foot += '<zt_footer role="zt_footer" class="zt_footer"><nav class="ft_nav">';
zt_foot += '<a href="http://www.chuanke.com/about" target="_blank">关于百度传课 </a> ';
zt_foot += '<a href="http://www.chuanke.com/helpcenter/index.html" target="_blank">百度传课帮助</a> ';
var ztkk = KK.readCookie("AuthInfo");
if(typeof ztkk == "string"){
	try{
		ztkk = eval('('+KK.base64_decode(ztkk)+')'); 
		if(ztkk.userid > 0) zt_foot += '<a href="http://qingting.baidu.com/index.php?pid=171&kk_info='+ztkk.userid+'" target="_blank">意见反馈</a> ';
		else zt_foot += '<a href="http://qingting.baidu.com/index.php?pid=171" target="_blank">意见反馈</a> ';
	}catch(e){}
}
zt_foot += '<a href="http://www.chuanke.com/contactus" target="_blank">联系方式</a> ';
zt_foot += '<a href="http://www.chuanke.com/job" target="_blank">招聘信息</a></nav>';
zt_foot += '<div class="copyright"><p class="info">';
zt_foot += '<span class="mr10">京ICP证<a href="http://www.miitbeian.gov.cn" target="_blank">130265</a>号</span>';
zt_foot += '<span class="mr10">Copyright &copy; 2015 </span>';
zt_foot += '<span><a target="_blank" href="http://www.chuanke.com/">百度传课 Chuanke.com</a></span></p></div></zt_footer>';

var wap_head = '<style>#wap_head{ width:100%; background:#eeeeee;height:34px; line-height:34px; border-bottom:1px #ccc solid;}';
wap_head += '#wap_head .a_more{ display:block; width:45px; height:34px; overflow:hidden; float:right; background:url(http://zt.chuanke.com/images/special/zt-footer/more_320.png) no-repeat; border-left:1px #ccc solid;}';
wap_head += '#wap_head .a_home{ display:block; width:45px; height:34px; overflow:hidden; float:left; background:url(http://zt.chuanke.com/images/special/zt-footer/home_320.png) no-repeat;border-right:1px #ccc solid;}';
wap_head += '#wap_head p{ text-align:center; font-size:1.5em;}</style>';
wap_head += '<a href="http://m.chuanke.com/" class="a_home"></a><a href="http://m.zt.chuanke.com/" class="a_more"></a>';

var wap_foot = '<style>#wap_foot{ width:100%; text-align:center; overflow:hidden;}';
wap_foot += '#wap_foot p{ background:#f9f9f9; border-bottom:1px #ccc solid; font-size:0.9em; line-height:2.5em;}';
wap_foot += '#wap_foot p a{ color:#333;}';
wap_foot += '#wap_foot h6{ font-size:1.2em; line-height:2.5em; font-weight:normal;}';
wap_foot += '#wap_foot h6 a{ color:#333;}</style>';
wap_foot += '<p>Copyright &copy; 2015  <a target="_blank" href="http://m.chuanke.com/">百度传课 Chuanke.com</a> </p><h6><a href="#">返回顶部</a></h6>';

$("#zt_foot").html(zt_foot);
$("#wap_foot").html(wap_foot);
$("#wap_head").prepend(wap_head);